set(product_list "ascend310p" "ascend910" "ascend910B" "ascend920esl")
if (${PRODUCT} IN_LIST product_list)
    set(drv_devmm_host_depends drv_seclib_host drv_davinci_intf_host drv_pcie_host drv_devmng_host drv_devdrv_host drv_virtmng_host drv_vpc_host ascend_uda ascend_soc_resmng ascend_dms_smf ascend_dms_dtm)
else ()
    set(drv_devmm_host_depends drv_seclib_host drv_davinci_intf_host drv_pcie_host drv_devmng_host drv_devdrv_host ascend_uda ascend_soc_resmng ascend_dms_smf ascend_dms_dtm)
endif ()

if(DEFINED ENV{KERNEL_VERSION})
    if (${KERNEL_VERSION} STREQUAL 4.19.140)
        list(APPEND MAKE_ARGS ADAPT_KP_OS_FOR_EMU_TEST=ON)
    endif ()
endif ()

add_host_ko(LOCAL_MODULE drv_devmm_host
            KO_SRC_FOLDER ${CMAKE_CURRENT_SOURCE_DIR}
            MAKE_ARGS ${MAKE_ARGS}
            TARGETE_DPENDS "${drv_devmm_host_depends}")
